/*
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2022-09-08 15:18:46
 * @LastEditTime: 2022-09-08 16:57:28
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \yili-musicd:\Developer\WGJ\VSCode_WorkSpace\Java\MyBatis\MyBatis_demo3\src\main\java\com\atguigu\mybatis\mapper\DynamicSQLMapper.java
 * @Description:
 */
package com.atguigu.mybatis.mapper;

import java.util.List;

import com.atguigu.mybatis.pojo.Emp;

import org.apache.ibatis.annotations.Param;

public interface DynamicSQLMapper {

    /**
     * 多条件查询
     */
    List<Emp> getEmpByCondition(Emp emp);

    /**
     * 测试choose、when、otherwise
     */
    List<Emp> getEmpByChoose(Emp emp);

    /**
     * 通过数组实现批量删除
     */
    int deleteMoreByArray(@Param("eids") Integer[] eids);

    /**
     * 通过list集合实现批量添加
     */
    int insertMoreByList(@Param("emps") List<Emp> emps);

}
